﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterFooter.master" AutoEventWireup="true" CodeFile="qa.aspx.cs" Inherits="qa" %>

<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" Runat="Server">
    <script type="text/javascript">
        function ShowQA(divDown) {
            $('#' + divDown + ' .QA-A').show();
            $('#' + divDown + ' .QA-close').show();
            $('#' + divDown + ' .QA-more').hide();
        }
        function HideQA(divDown) {
            $('#' + divDown + ' .QA-A').hide();
            $('#' + divDown + ' .QA-close').hide();
            $('#' + divDown + ' .QA-more').show();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<div id="inadv05">
  <div id="black"></div>

    <table border="0" cellpadding="0" cellspacing="0" class="intable"><tr>
    <td valign="top">
    <div id="In-slogn"></div>
<div id="Inshow">
  
  <div id="tt05"><span class="Pon-txt">首頁&gt;客戶FAQ</span></div>
    <asp:Panel ID="PanelSearch" runat="server" DefaultButton="btnQuery">
      <div id="QAsearchbar">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td>
            <asp:TextBox ID="txtKeyWord" runat="server" CssClass="searchbar-order"></asp:TextBox>
        </td>
        <td><asp:ImageButton ID="btnQuery" ImageUrl="image/go.gif" Width="26" Height="17" 
                runat="server" onclick="btnQuery_Click" /></td>
      </tr>
    </table>
  </div>
       </asp:Panel>
       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
        <asp:DropDownList ID="ddlSelect" runat="server" CssClass="case-slect" style="margin-right:30px;"
            AutoPostBack="True" onselectedindexchanged="ddlSelect_SelectedIndexChanged">
        </asp:DropDownList></td>
  </tr>
</table>
      <div id="All-INShow">
          <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <div class="QA-Down" id="QA-Down<%# Eval("PostId") %>">
            <div class="QA-Title"><%# Eval("Title") %></div>
            <div class="QA-A" style="display:none;">
            <%# Eval("HtmlContent")%>
          </div>
            <div class="QA-more" onclick="ShowQA('QA-Down<%# Eval("PostId") %>');"></div>
            <div class="QA-close" style="display:none;" onclick="HideQA('QA-Down<%# Eval("PostId") %>');"></div>
          </div> 
            </ItemTemplate>
          </asp:Repeater>
          <div id="PageNumber">
            <ul>
              <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="PageNumber" HorizontalAlign="center"
                    OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="10"
                    ShowPageIndexBox="Never" ShowFirstLast="false" PrevPageText="<li class='PageNumber-LI1'>Back</li>" NextPageText="<li class='PageNumber-LI1'>Next</li>" NumericButtonTextFormatString="<li class='PageNumber-LI2'>{0}</li>" />
            </ul>
          </div>
        </div>
  </div>
      </td>
  </tr></table>


</div>
</asp:Content>

